package com.hedl.practice.diyJava.junit.study_junit_fixture.test;

import org.springframework.stereotype.Component;

@Component
public class Calculator {
    private long n = 0;

    public long add(long x){
        return n+=x;
    }

    public long sub(long x){
        return n-=x;
    }
}
